﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace puzzle
{
    public class Box
    {
        public int X { get; set; }
        public int Y { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public int ID { get; set; }
        public int Blocked { get; set; }

        private static int idCounter = 0;

        public Box(Tile upperLeftTile)
        {
            X = upperLeftTile.X;
            Y = upperLeftTile.Y;
            Width = 1;
            Height = 1;
            ID = idCounter++;
            Blocked = -1;
        }

        public static void init()
        {
            idCounter = 0;
        }

        public int getNbMaxSlots()
        {
            return Width * Height * 4;
        }
    }
}
